import request from '@/common/request/request.js'
 import {
 	stringFormat,
  toQueryString
 } from '../utils/util.js' //组件用正则 过滤传递的参数
 
 const GET = 'GET'
 const POST = 'POST'
 const PUT = 'PUT'
 const DELETE = 'DELETE'
 
 // 获取任务列表
 export function getTaskList(data) {
 	return request(data,"/clientTask/clientTaskList", GET).then(res => res)
 }
 
 // 获取任务完成情况
 export function taskDiscountBindList(data) {
 	return request(data, "/taskDiscountBind/taskDiscountBindList", GET).then(res => res)
 }
 

// 获取邀请用户任务相关的信息
 export function getIniviteUserTaskInfo(data) {
 	return request(data, "/taskDiscountBind/huddleWarmthList", GET).then(res => res)
 }



// 获取优惠券
 export function getTaskGiftById(data) {
   return request(data, "/taskDiscountBind/addDisCount", GET).then(res => res)
 }

 // 查询指定任务是否完成
 export function checkTargetTaskStatus(data) {
 	return request(data,"/clientTask/checkTargetTaskStatus", GET).then(res => res)
 }
 

